NOPROFILE=
NOMAN=
NOPIC=
NOLINT=

#
# include
#
NCSTOPDIR= ../../../..
TOPDIR= $(NCSTOPDIR)/..

.if exists($(NCSTOPDIR)/Makefile.inc)
.include "$(NCSTOPDIR)/Makefile.inc"
.endif
.if exists($(NCSTOPDIR)/Makefile.conf)
.include "$(NCSTOPDIR)/Makefile.conf"
.endif

#
# definition
#
DIR_LLMNR_ROOT= ..
DIR_INCLUDE= $(DIR_LLMNR_ROOT)/include

LIB= llmnr
LIBNAME= lib$(LIB).a

INSTALL= install -c

#
# path
#
.PATH: $(DIR_LLMNR_ROOT)/src

#
# flags
#
CFLAGS+= -g -Wall
CFLAGS+= -I$(DIR_INCLUDE)

#
# src
#
SRCS+= libllmnr.c
SRCS+= llmnrc_recv.c
SRCS+= llmnrc_send.c

#
# object
#
all: $(LIBNAME)
	$(INSTALL) $(LIBNAME) $(NCS_TOP_LIB_DIR)

clean:
	rm -f $(NCS_TOP_LIB_DIR)/$(LIBNAME)

.include <bsd.lib.mk>

